Lingo can determine when the user presses or releases a key

• Pressing a key generates a keyDown message.

• Releasing a key generates a keyUp message.

Each time you press a key, the on keyDown handler shown at the top runs. The button’s image changes because the handler switches the cast member assigned to the sprite. The